import app from "../../app";
import { group } from "../../shared/interface";
import cell from "../word/cell";
import manage_word from "../../master/model/manage/manage_word";
import battlefield from "./battle/battlefield";
import { player } from "./body/player";
import { SKILL, SK_data } from "./skill/SK_active";
import SK_func from "./skill/SK_func";

export class battleDemo {
    constructor() {
        // this.battleStart();
    }
    battleStart() {
        let p1 = new player();
        p1.leve.num = 30;
        p1.name = '客方玩家';
        p1.uuid = '111';
        let p2 = new player();
        p2.name = '主场玩家';
        p2.uuid = '222'
        let p3 = new player();
        p3.name = '主场玩家2';
        p3.uuid = '333';
        p1.addSkill(new SKILL(SK_func.getSkCfg_name('普通攻击')));
        // p1.addSkill(new SK_active(SK_func.getSkCfg_name('不灭之握')));
        p2.addSkill(new SKILL(SK_func.getSkCfg_name('普通攻击')));
        // p2.addSkill(new SK_active(SK_func.getSkCfg_name('生命避难所')));
        // p3.addSkill(new SK_active(SK_func.getSkCfg_name('普通攻击')));
        // p3.addSkill(new SK_active(SK_func.getSkCfg_name('不灭之握')));

        
        let _cell = new cell(0,1);
        _cell.add(p1);
        _cell.add(p2);
        // _cell.add(p3);

        _cell.attack(p1.uuid,p2.uuid);
        // SK_func.createSkill('1')
        // SK_func.createSkill('1')
    }
}